<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script src="./axios(1).js"></script>
    
    <script>
        //  async await 实现异步任务同步执行的效果
        async function test() {
            let p = await axios.get('https://cnodejs.org/api/v1/topics');
            console.log(p)
        }
        test();
    </script>
</body>

</html>